#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint flutter_pangle.podspec` to validate before publishing.
#
Pod::Spec.new do |s|
  s.name             = 'flutter_pangle'
  s.version          = '0.0.7'
  s.summary          = 'A new Flutter project.'
  s.description      = <<-DESC
A new Flutter project.
                       DESC
  s.homepage         = 'http://example.com'
  s.license          = { :file => '../LICENSE' }
  s.author           = { 'Your Company' => 'email@example.com' }
  s.source           = { :path => '.' }
  s.source_files = 'Classes/**/*.{h,m}'
  s.public_header_files = 'Classes/**/*.h'
  s.dependency 'Flutter'
  s.platform = :ios, '13.0'

  # SDK frameworks and resources
  s.vendored_frameworks = 'sdk/PAGSShortPlay.xcframework'
  s.resources = 'sdk/PAGSShortPlay.bundle', 'Resources/**/*'

  # SDK依赖的三方库（根据文档要求）
  s.dependency 'AFNetworking', '>= 4.0.0'
  s.dependency 'YYModel', '>= 1.0.1'
  s.dependency 'SDWebImage', '>= 5.13.0'
  s.dependency 'Ads-Global', '>= 6.2.1.1'
  s.dependency 'TTSDKFramework/Player-SR','1.47.200.2-standard'

  # Flutter.framework does not contain a i386 slice.
  s.pod_target_xcconfig = { 
    'DEFINES_MODULE' => 'YES', 
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386',  # 只排除 i386，支持 arm64 模拟器
    'FRAMEWORK_SEARCH_PATHS' => '$(inherited) "${PODS_ROOT}/../sdk"',
    'OTHER_LDFLAGS' => '$(inherited) -framework "CoreTelephony" -framework "SystemConfiguration" -ObjC'
  }

  # If your plugin requires a privacy manifest, for example if it uses any
  # required reason APIs, update the PrivacyInfo.xcprivacy file to describe your
  # plugin's privacy impact, and then uncomment this line. For more information,
  # see https://developer.apple.com/documentation/bundleresources/privacy_manifest_files
  # s.resource_bundles = {'flutter_pangle_privacy' => ['Resources/PrivacyInfo.xcprivacy']}
end
